package wpwork.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("ksh_user_group_relation")
public class UserGroupRelationEntity {

    @TableId(value = "f_id", type = IdType.AUTO)
    private Long id;

    @TableField("f_user_id")
    private String userId;

    @TableField("f_group_id")
    private Long groupId;

    @TableField("f_created_by")
    private Long createdBy;

    @TableField("f_created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
}
